// components/item-popup/item-popup.js
Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    item: {
      type: Object,
      value: {
        img: "",
        text: "",
        type: ""
      }
    }
  },
  methods: {
    closePopup() {
      this.triggerEvent('close');
    },
    onConfirm() {
      this.triggerEvent('confirm');
    }
  },
  lifetimes: {
    attached() {

    }
  }
});
